
#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>
#include <gsl/gsl_poly.h>

int main(int argc, char **argv) {
  
    double c[3];
    c[0] = 1;
    c[1] = 2;
    c[3] = 3;
    
    int len = 3;
    
    double x = .5;
    
    double res =  gsl_poly_eval(c, len, x);
    
    printf("result is = %.4f\n", res);
  
    return 0;
}
